import request from "@/utils/request"
const BASE_URL = process.env.VUE_APP_BASE_URL_HRM

/**
 * 人事概况
 * @param {*} data
 */
export function hrmDashboardEmployeeSurveyAPI() {
	return request({
		url: BASE_URL + "hrmDashboard/employeeSurvey",
		method: "post"
	})
}

/**
 * 招聘动态
 * @param {*} data
 */
export function hrmDashboardRecruitSurveyAPI() {
	return request({
		url: BASE_URL + "hrmDashboard/recruitSurvey",
		method: "post"
	})
}

/**
 * 上月薪资概况
 * @param {*} data
 */
export function hrmDashboardLastSalarySurveyAPI() {
	return request({
		url: BASE_URL + "hrmDashboard/lastSalarySurvey",
		method: "post"
	})
}

/**
 * 绩效概况统计
 * @param {*} data
 */
export function hrmDashboardAppraisalCountSurveyAPI() {
	return request({
		url: BASE_URL + "hrmDashboard/appraisalCountSurvey",
		method: "post"
	})
}

/**
 * 绩效概况
 * @param {*} data
 */
export function hrmDashboardAppraisalSurveyAPI(status) {
	return request({
		url: BASE_URL + `hrmDashboard/appraisalSurvey/${status}`,
		method: "post"
	})
}

/**
 * 查询时间段事项
 */
export function hrmDashboardQueryNotesStatusAPI(data) {
	return request({
		url: BASE_URL + "hrmDashboard/queryNotesStatus",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 查询当日事项
 */
export function hrmDashboardQueryNotesByTimeAPI(data) {
	return request({
		url: BASE_URL + "hrmDashboard/queryNotesByTime",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 添加备忘
 */
export function hrmDashboardAddNotesAPI(data) {
	return request({
		url: BASE_URL + "hrmDashboard/addNotes",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 删除备忘
 * @param {*} data
 */
export function hrmDashboardDeleteNotesAPI(notesId) {
	return request({
		url: BASE_URL + `hrmDashboard/deleteNotes/${notesId}`,
		method: "post"
	})
}

/**
 * 待办提醒
 * @param {*} data
 */
export function hrmDashboardToDoRemindAPI() {
	return request({
		url: BASE_URL + "hrmDashboard/toDoRemind",
		method: "post"
	})
}

/**
 * 我的概况(员工端)
 * @param {*} data
 */
export function hrmDashboardMySurveyAPI() {
	return request({
		url: BASE_URL + "hrmDashboard/mySurvey",
		method: "post"
	})
}

/**
 * 查询当日事项(员工端)
 */
export function hrmDashboardMyNotesByTimeAPI(data) {
	return request({
		url: BASE_URL + "hrmDashboard/myNotesByTime",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 查询当日事项(员工端)
 */
export function hrmDashboardMyNotesStatusAPI(data) {
	return request({
		url: BASE_URL + "hrmDashboard/myNotesStatus",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 我的团队(上级角色)
 * @param {*} data
 */
export function hrmDashboardMyTeamAPI() {
	return request({
		url: BASE_URL + "hrmDashboard/myTeam",
		method: "post"
	})
}

/**
 * 团队概况(上级角色)
 * @param {*} data
 */
export function hrmDashboardTeamSurveyAPI() {
	return request({
		url: BASE_URL + "hrmDashboard/teamSurvey",
		method: "post"
	})
}
